package main

import "fmt"

// 数组复制
// 数组赋值给新的变量还是将它传递给函数，都会产生一个完整的数组副本
func main() {
	planets := [...]string{
		"Mercury",
		"Venus",
		"Earth",
		"Mars",
		"Jupiter",
		"Saturn",
		"Uranus",
		"Neptune",
	}

	planetsMarkII := planets

	planetsMarkII[2] = "whoops"

	fmt.Println(planets)
	fmt.Println(planetsMarkII)
}
